import {qss} from '../util/request'
import request from '../util/request'

//用户个人信息
export const getUserInfo  = () => {
    let url = '/api/user/info'
    return request.get(url, {
        params: {

        }
    })
}

//个人中心的健康档案
export const getUserRecord = () => {
    let url = '/api/user/record'
    return request.get(url, {
        params: {

        }
    })
}

//用户修改基本信息
export const upDataUserInfo = (sex, phone, realName, idNumber, birthday, address) => {
    let url = '/api/user/saveInfo'
    let param = {
        sex: sex, phone: phone,
        realName: realName,
        idNumber: idNumber,
        birthday: birthday,
        address: address
    }
    return request.post(url, qss(param))
}